<?php
namespace app\model;
use think\Model;

class Order extends Model{
    public function goods()
    {
        return $this->hasOne('Goods','sp_id','num_iid');
    }

    public function user()
    {
        return $this->hasOne('User','id','uid');
    }
}
